﻿'Params
'	api_key (Required) : A Last.fm API key.
'	api_sig (Required) : A Last.fm method signature. See authentication for more information.
'
'Auth
'	This service does not require authentication.

Public Class AuthGetToken
	Inherits BaseRequest

	Public Function getToken() As XDocument
		ClearMembers()
		AddMember("method", "auth.getToken", True)
		AddMember("api_key", My.Settings.api_key, True)
		AddMemberSignature()
		Return sendGETResponse()

	End Function

	Public Function ExtractToken(ByRef doc As XDocument) As String
		Dim str As String = ""
		Try
			str = doc.<lfm>.<token>.Value
		Catch ex As Exception

		End Try
		Return str
	End Function

End Class
